package com.nova.edc.model.energy;

import java.util.Date;

import com.nova.edc.model.system.CollectAreaItem;
import com.nova.frame.annotation.Id;
import com.nova.frame.annotation.Table;
import com.nova.frame.annotation.Transient;
import com.nova.module.filter.annotation.FilterCondition;

@Table("t_summary")
public class Summary {

	@Id
	private Integer id;
	@FilterCondition
	private Integer companycode;
	@FilterCondition
	private String gatewayid;
	@FilterCondition
	private String sensorid;
	@FilterCondition
	private String channelid;
	@FilterCondition
	private String summarydate;
	@FilterCondition
	private Integer activestate;
	private String addby;
	private Date adddate;
	private String modifyby;
	private Date modifydate;
	@Transient
	private Integer useminute;
	private Integer pointid;
	private Integer areaid;

	public Integer getPointid() {
		return pointid;
	}

	public void setPointid(Integer pointid) {
		this.pointid = pointid;
	}

	public Integer getAreaid() {
		return areaid;
	}

	public void setAreaid(Integer areaid) {
		this.areaid = areaid;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCompanycode() {
		return companycode;
	}

	public void setCompanycode(Integer companycode) {
		this.companycode = companycode;
	}

	public String getGatewayid() {
		return gatewayid;
	}

	public void setGatewayid(String gatewayid) {
		this.gatewayid = gatewayid;
	}

	public String getSensorid() {
		return sensorid;
	}

	public void setSensorid(String sensorid) {
		this.sensorid = sensorid;
	}

	public String getChannelid() {
		return channelid;
	}

	public void setChannelid(String channelid) {
		this.channelid = channelid;
	}

	public Integer getActivestate() {
		return activestate;
	}

	public void setActivestate(Integer activestate) {
		this.activestate = activestate;
	}

	public String getAddby() {
		return addby;
	}

	public void setAddby(String addby) {
		this.addby = addby;
	}

	public Date getAdddate() {
		return adddate;
	}

	public void setAdddate(Date adddate) {
		this.adddate = adddate;
	}

	public String getModifyby() {
		return modifyby;
	}

	public void setModifyby(String modifyby) {
		this.modifyby = modifyby;
	}

	public Date getModifydate() {
		return modifydate;
	}

	public void setModifydate(Date modifydate) {
		this.modifydate = modifydate;
	}

	public Integer getUseminute() {
		return useminute;
	}

	public void setUseminute(Integer useminute) {
		this.useminute = useminute;
	}

	@Override
	public boolean equals(Object obj) {
		CollectAreaItem temp = (CollectAreaItem) obj;
		return temp.getGatewayid().equals(this.getGatewayid())
				&& temp.getChannelid().equals(this.getChannelid())
				&& temp.getSensorid().equals(this.getSensorid());
	}

	public String getSummarydate() {
		return summarydate;
	}

	public void setSummarydate(String summarydate) {
		this.summarydate = summarydate;
	}
}
